package com.czxy.Demo19;

public class Test {
    public static void main(String[] args) {
        BankCard b = new BankCard();
        try {
            b.saveMoney(500);   //  存500
            b.drawMoney(70);    //  取70
            b.saveMoney(600);   //  存600
            b.drawMoney(5000);  //  取5000
        } catch (BankException e) {
            e.printStackTrace();
        }
    }
}
